﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace BhServer.Comunication
{
    [ServiceContract(CallbackContract = typeof(IChatServiceCallback))]
    public interface IChatService
    {
        [OperationContract]
        int LogIn(string name);
        
        [OperationContract]
        void LogOut(int userId);

        [OperationContract]
        void SendMessage(int sender, int receiver, string message);

        [OperationContract]
        ChatUser[] GetUsers();

        [OperationContract]
        void Beep();
    }
}
